package old.coordinate;

import java.util.ArrayList;

import stars.starSystems.StarSystemModel;
import stars.starSystems.StarSystemView;
import stars.starSystems.StarSystemViewBuilder;

import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.texture.Texture;


public class CoordinateViewGenerator {

	public CoordinateViewGenerator() {}
	
	public ArrayList<ArrayList<CoordinateView>> createCoordinateViews(ArrayList<CoordinateModel> coordinates, AssetManager assets) {
		
		ArrayList<ArrayList<CoordinateView>> views = new ArrayList<ArrayList<CoordinateView>>();
		
		//Material material = null;
		//Texture texture = null;
		
		CoordinateView tempView;
		ArrayList<CoordinateView> tempViewList = new ArrayList<CoordinateView>();
		CoordinateViewBuilder fact = new CoordinateViewBuilder();
		
		for (CoordinateModel coordinate : coordinates) {
			
			tempView = fact.createView(coordinate, assets);
			tempView.initView();
			
			tempViewList.add(tempView);
			
			views.add(tempViewList);
		}
		
		return views;
	}
	
}
